package com.itheima.代码练习;

public class TestStudent {
    public static void main(String[] args) {
        Student []stuArr=new Student[3];
        stuArr[0]=new Student("张三丰",98,89);
        stuArr[1]=new Student("李大牛",20,99);
        stuArr[2]=new Student("王五",99,89);

        for (int i = 0; i < stuArr.length; i++) {

            if((stuArr[i].getChinese()+stuArr[i].getMath())/2>90){
                stuArr[i].show();
            }
        }
    }
}
